{template 'common/header'}
<meta charset="utf-8" />
<link rel="stylesheet" href="../addons/qqbb_PPP/css/webstyle.css" type="text/css" />
<link rel="stylesheet" href="../addons/qqbb_ppp/css/notice.css" type="text/css" />
<script type="text/javascript" src="../addons/qqbb_ppp/js/notice.js" ></script>
<div class="main">
	<ul class="nav nav-tabs">
		<li class="active">
			<a href="{php echo $this->createWebUrl('index');}">添加语录</a>
		</li>
		<li>
			<a href="{php echo $this->createWebUrl('guanli',array('op' =>'all'));}">语录管理</a>
		</li>
	</ul>
	<div class="panel panel-info">
		<div class="panel-heading">评论设置</div>
		<div class="panel-body">
			<form action="" method="post" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="qqbb_ppp" />
				<input type="hidden" name="do" value="guanli" />
			<!-- 	<input type="hidden" name="op" value="all" /> -->
				<div class="form-group">
					<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">经典语录</label>
					<div class="col-xs-12 col-sm-8 col-lg-9">
						<input type="text" name="words" id="words" class="form-control">
					</div>
				</div>
				<div class="form-group col-sm-12 finish">
					<button class="label label-success searchs" id="add">添加</button>
				</div>
			</form>
		</div>	
		</div>
		<div class="panel panel-info">
		<div class="panel-heading">我也要玩</div>
		<div class="panel-body">
			<form action="" method="post" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="qqbb_ppp" />
				<input type="hidden" name="do" value="index" />
				<input type="hidden" name="id" value="{$urls['id']}" />
				<div class="form-group">
					<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">我也要玩</label>
					<div class="col-xs-12 col-sm-8 col-lg-9">
						<input type="text" name="url" id="url" value="{$urls['url']}" class="form-control">
						<span class="help-block">*务必修改为自己的引导关注链接或二维码展示页链接</span>
					</div>
				</div>
				<div class="form-group col-sm-12 finish">
					<button class="label label-success searchs" id="edit">修改</button>
				</div>
			</form>			
		</div>	
		</div>
		<div class="panel panel-info">
		<div class="panel-body">
			<label class="col-xs-12 col-sm-12control-label"><b>&#x65B0;&#x777F;&#x793E;&#x533A;&#x63D0;&#x793A;:</b>获取更多好看的二维码样式链接：<a href="http://cli.im/" target="_blank">http://cli.im/</a></label>	
		</div>	
		</div>
	
</div>
<script>
	$('#add').click(function(){
		var yulu = $('#words').val();
		if(yulu == null || yulu == ''){
			showNoticeFunc('添加语录不能为空！');
			return false;
		}
	})
</script>
{template 'common/footer'}
